package chapter4;

import java.util.Scanner;

/**
 * 判断奇偶数
 */
public class Test4_6_1 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.print("x= ");
        int x = Integer.parseInt(scan.nextLine());
        if(x%2 != 0){
            System.out.println("x为奇数");
        }else{
            System.out.println("x为偶数");
        }
    }
}
